Jump to content

  • Log In with Google      Sign In   
  • Create Account

- - - - -

CMakeLists.txt patch


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 boltZar   Members   -  Reputation: 124

Like
0Likes
Like

Posted 10 September 2012 - 12:54 PM

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 ----

Edited by boltZar, 10 September 2012 - 12:55 PM.


Sponsor:

#2 Jake Albano   Members   -  Reputation: 649

Like
0Likes
Like

Posted 10 September 2012 - 03:20 PM

Does Angelscript use CMake now? Or is this something else?

#3 boltZar   Members   -  Reputation: 124

Like
0Likes
Like

Posted 10 September 2012 - 11:02 PM

in the "projects" folder there is a cmake option along with many other building systems.

#4 Andreas Jonsson   Moderators   -  Reputation: 3445

Like
0Likes
Like

Posted 11 September 2012 - 08:11 AM

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




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS