Skip to content

Commit

Permalink
xo-unit: build: use xo_add_executable() for all examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Rconybea committed May 4, 2024
1 parent 17c8638 commit 2fe58ef
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
3 changes: 1 addition & 2 deletions example/ex2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
set(SELF_EXE xo_unit_ex2)
set(SELF_SRCS ex2.cpp)

add_executable(${SELF_EXE} ${SELF_SRCS})
xo_include_options2(${SELF_EXE})
xo_add_executable(${SELF_EXE} ${SELF_SRCS})

# ----------------------------------------------------------------
# dependencies..
Expand Down
3 changes: 1 addition & 2 deletions example/ex3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
set(SELF_EXE xo_unit_ex3)
set(SELF_SRCS ex3.cpp)

add_executable(${SELF_EXE} ${SELF_SRCS})
xo_include_options2(${SELF_EXE})
xo_add_executable(${SELF_EXE} ${SELF_SRCS})

# ----------------------------------------------------------------
# dependencies..
Expand Down
3 changes: 1 addition & 2 deletions example/ex4/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
set(SELF_EXE xo_unit_ex4)
set(SELF_SRCS ex4.cpp)

add_executable(${SELF_EXE} ${SELF_SRCS})
xo_include_options2(${SELF_EXE})
xo_add_executable(${SELF_EXE} ${SELF_SRCS})

# ----------------------------------------------------------------
# dependencies..
Expand Down
3 changes: 1 addition & 2 deletions example/ex5/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
set(SELF_EXE xo_unit_ex5)
set(SELF_SRCS ex5.cpp)

add_executable(${SELF_EXE} ${SELF_SRCS})
xo_include_options2(${SELF_EXE})
xo_add_executable(${SELF_EXE} ${SELF_SRCS})

# ----------------------------------------------------------------
# dependencies..
Expand Down
3 changes: 1 addition & 2 deletions example/ex6/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
set(SELF_EXE xo_unit_ex6)
set(SELF_SRCS ex6.cpp)

add_executable(${SELF_EXE} ${SELF_SRCS})
xo_include_options2(${SELF_EXE})
xo_add_executable(${SELF_EXE} ${SELF_SRCS})

# ----------------------------------------------------------------
# dependencies..
Expand Down

0 comments on commit 2fe58ef

Please sign in to comment.