]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/CMakeLists.txt
Reset: explicit close-window function.
[flightgear.git] / src / Main / CMakeLists.txt
index dceb3db3c7527510cf18a274bcacd3633e34b2b9..07dd49ec2978f5d0dd0a1387ba4a3ecdf84edeb7 100644 (file)
@@ -67,12 +67,11 @@ endforeach()
 
 source_group("Main\\Headers" FILES ${HEADERS})
 source_group("Main\\Sources" FILES ${SOURCES})
-add_executable(fgfs ${SOURCES} ${FG_SOURCES} ${FG_HEADERS} ${HEADERS})
 
-# disable sqlite3 dynamic lib support
-# this should really be a SOURCE property, but the way we handle
-# Fcomponent sources is making that tricky
-add_definitions(-DSQLITE_OMIT_LOAD_EXTENSION)
+# important we pass WIN32 here so the console is optional. Other
+# platforms ignore this option. If a console is needed we allocate
+# it manually via AllocConsole()
+add_executable(fgfs WIN32 ${SOURCES} ${FG_SOURCES} ${FG_HEADERS} ${HEADERS})
 
 get_property(FG_LIBS GLOBAL PROPERTY FG_LIBS)
 #message(STATUS "fg libs ${FG_LIBS}")
@@ -91,7 +90,9 @@ if(ENABLE_JSBSIM)
     
     target_link_libraries(fgfs JSBSim)
 endif()
-
+if(ENABLE_IAX)
+    target_link_libraries(fgfs iaxclient_lib ${OPENAL_LIBRARY})
+endif()
 if(FG_HAVE_GPERFTOOLS)
     include_directories(${GooglePerfTools_INCLUDE_DIR})
     target_link_libraries(fgfs ${GooglePerfTools_LIBRARIES})