/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Gustav Hartvigsson
  • Date: 2015-04-08 18:25:07 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20150408182507-094jw13yhmi3bhfu
* Added "check" target for testing.
* Changed SRC to SSTS_SRC for future proofing.
* Removed a few "_" from before some struct names. It is not needed.
* Re-wrote how s_object_to_string () works on SError's. Should be faster now, but less safe...
  * To make this work I added SErrorTypeName string array. (Need to surpress the errer it creats).
* Re-orderd SErrorType enum.
* Use s_string_new_fmt () the default method for s_object_to_string ().
* Changed to strdup in some functions in utils.c.
* Added s_current_time () function to get an ISO time string.
* Added some more documentation to utils.h
* !DEBUG -> DEBUG in utils.h
* Added more tests to the test suite.
* Re-Wrote test_macros.h to display time, making it a lil' bit nicer to look at.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
option (DEBUG "Enable debug flags and macros in project" TRUE)
5
5
 
6
 
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11")
 
6
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11 -Wall")
7
7
 
8
8
set (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Wall -g")
9
9
 
10
10
set (CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Wall")
11
11
 
12
12
add_subdirectory (src)
 
13
include_directories (${CMAKE_SOURCE_DIR}/src/)
13
14
add_subdirectory (tests)
14
15
 
15
 
add_library (ssts SHARED ${SRC})
 
16
add_library (ssts SHARED ${SSTS_SRC})
 
17
 
 
18
enable_testing()
 
19
add_test (test tests/ssts_test)
 
20
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --extra-verbose)
 
21
 
 
22