Skip to content

Commit

Permalink
[cmake] c++/Py tests are now run before tests from examples
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonRohou committed Apr 20, 2022
1 parent 5fcaebf commit 4969a95
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,23 @@
endif()


################################################################################
# Compile sources
################################################################################

add_subdirectory(src) # C++ sources
add_subdirectory(doc) # documentation (Doxygen + Sphinx manual)

# Python binding:
option(WITH_PYTHON "Build Python binding" OFF)
if(WITH_PYTHON)
if(NOT MSVC)
add_compile_options(-fPIC) # is it necessary for python binding?
endif()
add_subdirectory(python)
endif()


################################################################################
# Tests
################################################################################
Expand All @@ -148,23 +165,6 @@
add_subdirectory(examples) # examples are tested as integration tests


################################################################################
# Compile sources
################################################################################

add_subdirectory(src) # C++ sources
add_subdirectory(doc) # documentation (Doxygen + Sphinx manual)

# Python binding:
option(WITH_PYTHON "Build Python binding" OFF)
if(WITH_PYTHON)
if(NOT MSVC)
add_compile_options(-fPIC) # is it necessary for python binding?
endif()
add_subdirectory(python)
endif()


################################################################################
# Archives and packages
################################################################################
Expand Down

0 comments on commit 4969a95

Please sign in to comment.