Advertisement

CMakeLists.txt patch

Started by September 10, 2012 06:54 PM
2 comments, last by WitchLord 12 years, 3 months ago
I've added pthreads to the CMakeLists.txt otherwise I was getting linking error in Ubuntu 12.04.

Cheers


*** CMakeLists.txt.old 2012-08-05 12:56:06.000000000 +0300
--- CMakeLists.txt 2012-09-10 21:39:33.000000000 +0300
***************
*** 93,100 ****
../../source/as_variablescope.h
)

! include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../include
! )

add_definitions("-D_CRT_SECURE_NO_WARNINGS -DANGELSCRIPT_EXPORT -D_LIB")

--- 93,99 ----
../../source/as_variablescope.h
)

! include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../include)

add_definitions("-D_CRT_SECURE_NO_WARNINGS -DANGELSCRIPT_EXPORT -D_LIB")

***************
*** 106,111 ****
--- 105,113 ----
add_library(Angelscript STATIC ${ANGELSCRIPT_SOURCE} ${ANGELSCRIPT_HEADERS})
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/../../lib)

+ find_package(Threads)
+ target_link_libraries(Angelscript ${CMAKE_THREAD_LIBS_INIT})
+
if(MSVC)
set_target_properties(Angelscript PROPERTIES COMPILE_FLAGS "/MP")
endif(MSVC)
***************
*** 113,117 ****
set(RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/../../bin)

add_subdirectory(../../../samples/game/projects/cmake/ ./game)
- add_subdirectory(../../../tests/test_feature/projects/cmake/ ./test_feature)
- add_subdirectory(../../../tests/test_performance/projects/cmake/ ./test_performance)
--- 115,117 ----
Does Angelscript use CMake now? Or is this something else?
Advertisement
in the "projects" folder there is a cmake option along with many other building systems.
Thanks boltZar. I'll include this in the next check-in.

Regards,
Andreas

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement