comparison CMakeLists.txt @ 191:633a25df450e

molko-js: miscellaneous fixes While here, import sphinx as experimental documentation.
author David Demelier <markand@malikania.fr>
date Sat, 07 Nov 2020 15:40:34 +0100
parents a5436e15898d
children 78774cc2cc6b
comparison
equal deleted inserted replaced
190:5dc57029b9f1 191:633a25df450e
33 set(CMAKE_C_FLAGS_DEBUG "-fno-omit-frame-pointer ${options} ${CMAKE_C_FLAGS_DEBUG}") 33 set(CMAKE_C_FLAGS_DEBUG "-fno-omit-frame-pointer ${options} ${CMAKE_C_FLAGS_DEBUG}")
34 set(CMAKE_EXE_LINKER_FLAGS "${options} ${CMAKE_EXE_LINKER_FLAGS}") 34 set(CMAKE_EXE_LINKER_FLAGS "${options} ${CMAKE_EXE_LINKER_FLAGS}")
35 endif () 35 endif ()
36 36
37 option(MOLKO_WITH_DOXYGEN "Enable Doxygen build" On) 37 option(MOLKO_WITH_DOXYGEN "Enable Doxygen build" On)
38 option(MOLKO_WITH_DOC "Enable documentation (requires sphinx)" On)
38 option(MOLKO_WITH_TESTS "Enable unit tests" On) 39 option(MOLKO_WITH_TESTS "Enable unit tests" On)
39 option(MOLKO_WITH_EXAMPLES "Enable build of examples" On) 40 option(MOLKO_WITH_EXAMPLES "Enable build of examples" On)
40 41
41 set_property(GLOBAL PROPERTY USE_FOLDERS On) 42 set_property(GLOBAL PROPERTY USE_FOLDERS On)
42 43
68 add_subdirectory(librpg) 69 add_subdirectory(librpg)
69 add_subdirectory(libadventure) 70 add_subdirectory(libadventure)
70 add_subdirectory(molko) 71 add_subdirectory(molko)
71 add_subdirectory(molko-js) 72 add_subdirectory(molko-js)
72 73
74 if (MOLKO_WITH_DOC)
75 add_subdirectory(doc)
76 endif ()
77
73 if (MOLKO_WITH_EXAMPLES) 78 if (MOLKO_WITH_EXAMPLES)
74 add_subdirectory(examples) 79 add_subdirectory(examples)
75 endif () 80 endif ()
76 81
77 if (MOLKO_WITH_TESTS) 82 if (MOLKO_WITH_TESTS)